package com.sunshine.spring.aop.advice.throwsexception;

import org.springframework.aop.ThrowsAdvice;

/**
 * @Author: WeiHong
 * @Date: 2017/3/23 15:47
 */
public class HijackThrowException implements ThrowsAdvice {

    public void afterThrowing(IllegalArgumentException e) throws Throwable {
        System.out.println("HijackThrowException : Throw exception hijacked!");
    }
}
